/*
 * 使用示例:
 * app.use(vhost(options));
 * 
 * options支持的参数格式:
 * 1: { "localhost": app1, "127.0.0.1": app2 }
 * 2: [{ pattern: "localhost", target: app1 }, { pattern: /^127\..+$/, target: app2 }]
 */
'use strict';

const vhost = require('koa-virtual-host');

exports = module.exports = (options) => {
  return vhost(options);
}